<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:util="http://java.sun.com/jsf/composite/util">
<f:view contentType="text/html" locale="pt_BR">
	<h:head>
		<title>TiEspec - Sistema de Apoio a Construção de Especificações</title>
		<script type="text/javascript" src="#{request.contextPath}/resources/js/application.js"></script>
		<script type="text/javascript" src="#{request.contextPath}/resources/js/calendarLocale.js"></script>
		<link type="text/css" rel="stylesheet" href="#{request.contextPath}/resources/css/grid960.css" />
		<link type="text/css" rel="stylesheet" href="#{request.contextPath}/resources/css/dialogo_grid.css" />
		<link type="text/css" rel="stylesheet" href="#{request.contextPath}/resources/css/main.css" />
		<style>
			.btnMenuTemp {
				width: 230px;
				height: 30px;
				margin: 5px;
			}
		</style>
	</h:head>
	<h:body>
		<div id="header" style="margin-bottom: 5px;">
			<ui:include src="/views/layouts/_header.xhtml"/>
		</div>
		<div id="main" style="min-height: 500px;">
			<div class="container_24">
				<div class="grid_24" style="background-color: #EDEDFE; margin-left: -15px; padding-left: 15px;min-height: 500px; margin-top: -5px;padding-top: 15px">
					<div class="grid_18" style="">
						<ui:insert name="content"></ui:insert>
					</div>
					<div class="grid_6" style="margin-left: 20px;width: 220px;" >
						<div class="grid_6" style="min-height: 250px;">
							<h:form id="menu" rendered="#{contextoBean.usuario.id != null}">
<!-- 							<p:growl sticky="true" /> -->
							<p:menu style="width:195px; min-height: 250px; margin-bottom: 10px;" >
								<p:menuitem action="#{aprovacaoClientePortalBean.aprovacaoClientePortal()}" 
									value="Aprovação de Cliente de Portal" immediate="true" ajax="false" disabled="true" />
								<p:menuitem action="#{aprovacaoUsuarioBean.aprovacaoUsuario()}" 
									value="Aprovação de Usuários" immediate="true" ajax="false" disabled="true" />
								<p:menuitem action="#{artefatoBean.artefato()}" 
									value="Manutenção de Artefatos"  immediate="true" ajax="false" disabled="true" />
								<p:menuitem action="#{atorBean.ator()}" 
									value="Manutenção de Atores" immediate="true" ajax="false" />
								<p:menuitem action="#{cenarioBaseBean.cenarioBase()}" 
									value="Cenários Base"  immediate="true" ajax="false"  />
								<p:menuitem action="#{clientePortalBean.clientePortal()}" 
									value="Clientes de Portal"  immediate="true" ajax="false" disabled="true"/>
								<p:menuitem action="#{clienteProjetoBean.clienteProjeto()}" 
									value="Clientes de Projeto"  immediate="true" ajax="false" disabled="true"/>
								<p:menuitem action="#{configDescricaoBean.configurar()}" 
									value="Configurar Sistema" immediate="true" ajax="false" />
								<p:menuitem action="#{deBean.descricaoEstendida}" 
									value="Descrição Estentida" immediate="true" ajax="false" />
								<p:menuitem action="#{impressaoBean.impressao}" 
									value="Imprimir Descrições" immediate="true" ajax="false" />
								<p:menuitem action="#{projetoBean.projeto()}" 
									value="Manutenção de Projetos" immediate="true" ajax="false" disabled="true" />
								<p:menuitem action="#{usuarioBean.usuario()}" 
									value="Manutenção de Cadastros" immediate="true" ajax="false" disabled="true" />
							</p:menu>
							</h:form>
							<h:form id="login" rendered="#{contextoBean.usuario.id == null}">
								<util:label value="#{i18n.Login_Email}" grid="5" />
								<div class="width_5">
									<p:inputText value="#{loginBean.usuarioInstance.email}" styleClass="width_5" />
								</div>
								<util:label value="#{i18n.Login_Senha}" grid="5" />
								<div class="width_5">
									<p:password value="#{loginBean.usuarioInstance.senha}" styleClass="width_5" />
								</div>
								<div class="width_5">
									<br/>
									<p:commandButton action="#{loginBean.goLogin}" value="Logar" ajax="false" style="float:right;margin-right: -10px;"/>
								</div>
							</h:form>
						</div>
						
						<div class="grid_6" >
							<p:calendar mode="inline" locale="pt_BR"></p:calendar>
						</div>
					</div>
				</div>
			</div>
		</div>
		
		<div id="footer">
			<ui:include src="/views/layouts/_footer.xhtml"/>
		</div>
		
		<ui:include src="/views/layouts/_spinner.xhtml" />
		
		<ui:include src="/views/layouts/_login.xhtml" />
	</h:body>
</f:view>
</html>
